package com.heima.apis.wemedia;

import com.heima.apis.dotos.ChannelDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia")
public interface IWmChannelClient {


    @PostMapping("/api/v1/feign/wemedia/channel/save")
    public ResponseResult saveWmChannel(@RequestBody WmChannel wmChannel) ;

    @GetMapping("/api/v1/feign/wemedia/channel/del/{id}")
    public ResponseResult delWmChannel(Integer id) ;

    @PostMapping("/api/v1/feign/wemedia/channel/list")
    public PageResponseResult pageList(@RequestBody ChannelDto channelDto) ;


    @PostMapping("/api/v1/feign/wemedia/channel/update")
    public ResponseResult updateWnChannel(@RequestBody WmChannel wmChannel) ;
}